﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;


namespace DHQGHN.DAL.Models.DanhMuc
{
    [DataContract]
    public class ADDRESS
    {
        #region Contructors
        public ADDRESS() 
        {
            this.ADDRESS_ID = Common.NullValues.Default_String;
            this.COUNTRY_ID = Common.NullValues.Default_String;
            this.ADM_UNIT_EXT_ID = Common.NullValues.Default_String;
            this.CODE = Common.NullValues.Default_String;
            this.ADDRESS_DETAILS = Common.NullValues.Default_String;
            this.NAME = Common.NullValues.Default_String;
            this.GPS_LONGITUDE = Common.NullValues.Default_String;
            this.GPS_LATITUDE = Common.NullValues.Default_String;
            this.GPS_ACCURACY = Common.NullValues.Default_String;
            this.DESCRIPTIONS = Common.NullValues.Default_String;        
            this.DELETED = Common.NullValues.Default_Int;
            this.START_DATE = Common.NullValues.Default_Int;
            this.END_DATE = Common.NullValues.Default_Int;
            this.LAST_UPDATED = Common.NullValues.Default_DateTime;
        }
        #endregion

        #region Properties
        [DataMember(Order=0)]
        public string ADDRESS_ID { get; set; } //ADDRESS_ID bigint
        [DataMember(Order=1)]
        public string COUNTRY_ID { get; set; } //COUNTRY_ID bigint
        [DataMember(Order=2)]
        public string ADM_UNIT_EXT_ID { get; set; } //ADMINIS_UNIT_EXT_ID bigint
        [DataMember(Order=3)]
        public string CODE { get; set; } //CODE varchar(20)
        [DataMember(Order=4)]
        public string ADDRESS_DETAILS { get; set; } //ADDRESS_DETAILS nvarchar(100)
        [DataMember(Order=5)]
        public string NAME { get; set; } //NAME nvarchar(50)
        [DataMember(Order=6)]
        public string GPS_LONGITUDE { get; set; } //GPS_LONGITUDE varchar(20)
        [DataMember(Order=7)]
        public string GPS_LATITUDE { get; set; } //GPS_LATITUDE varchar(20)
        [DataMember(Order=8)]
        public string GPS_ACCURACY { get; set; } //GPS_ACCURACY nvarchar(100)
        [DataMember(Order=9)]
        public string DESCRIPTIONS { get; set; } //DESCRIPTTIONS nvarchar(200)      
        [DataMember(Order=10)]
        public int DELETED { get; set; } //DELETED int
        [DataMember(Order=11)]
        public int START_DATE { get; set; } //START_DATE int
        [DataMember(Order=12)]
        public int END_DATE { get; set; } //END_DATE int
        [DataMember(Order=13)]
        public DateTime LAST_UPDATED { get; set; } //LAST_UPDATED datetime
        #endregion
     
        #region Field list from Model
        public const string Field_ADDRESS_ID = "ADDRESS_ID";
        public const string Field_COUNTRY_ID = "COUNTRY_ID";
        public const string Field_ADM_UNIT_EXT_ID = "ADM_UNIT_EXT_ID";
        public const string Field_CODE = "CODE";
        public const string Field_ADDRESS_DETAILS = "ADDRESS_DETAILS";
        public const string Field_NAME = "NAME";
        public const string Field_GPS_LONGITUDE = "GPS_LONGITUDE";
        public const string Field_GPS_LATITUDE = "GPS_LATITUDE";
        public const string Field_GPS_ACCURACY = "GPS_ACCURACY";
        public const string Field_DESCRIPTIONS = "DESCRIPTIONS";
        public const string Field_DELETED = "DELETED";
        public const string Field_START_DATE = "START_DATE";
        public const string Field_END_DATE = "END_DATE";
        public const string Field_LAST_UPDATED = "LAST_UPDATED";
        #endregion
    }
}
